package com.ruoyi.events.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 播放事件表对象 events
 * 
 * @author lin
 * @date 2025-03-04
 */
public class Events extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 播放时间 */
    @Excel(name = "播放时间")
    private String timestamp;

    /** 时长 */
    @Excel(name = "时长")
    private Long duration;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 歌曲ID */
    @Excel(name = "歌曲ID")
    private Long trackId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTimestamp(String timestamp) 
    {
        this.timestamp = timestamp;
    }

    public String getTimestamp() 
    {
        return timestamp;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTrackId(Long trackId) 
    {
        this.trackId = trackId;
    }

    public Long getTrackId() 
    {
        return trackId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("timestamp", getTimestamp())
            .append("duration", getDuration())
            .append("userId", getUserId())
            .append("trackId", getTrackId())
            .toString();
    }
}
